package com.lambo.maven.core.utils.superHttp.core;

import java.util.List;

public class StringUtils {

    public static String join(List<String> keyValues, String string) {
        return null;
    }

    public static boolean isBlank(String content) {
        if(content == null || content.length() == 0) {
            return true;
        }
        return false;
    }
    public static boolean isEmpty(final CharSequence cs) {
        return cs == null || cs.length() == 0;
    }
    public static final int INDEX_NOT_FOUND = -1;
    public static String substringBeforeLast(final String str, final String separator) {
        if (isEmpty(str) || isEmpty(separator)) {
            return str;
        }
        final int pos = str.lastIndexOf(separator);
        if (pos == INDEX_NOT_FOUND) {
            return str;
        }
        return str.substring(0, pos);
    }
}
